// ******************************************************************
// * Copyright(c)  Steven Lu
// * Description   : Schema_SALES_CONTRACT
// * CreateDate    : 2011/9/27 11:24:18
// * Creater       : CodeSmith
// * LastChangeDate: 2011/9/27 11:24:18
// * LastChanger   : 2011/9/27 11:24:18
// * Version Info  : 1.0 For ESOL
// ******************************************************************

using System;
using System.Collections.Generic;
using System.Text;
using Suzsoft.Smart.EntityCore;

namespace ESOL.Common.Schema
{
  	[Serializable]
    public partial class SalesContractTable : TableInfo
    {
		public const string C_TableName = "SALES_CONTRACT";
		
		public const string C_CONTRACT_ID = "CONTRACT_ID";
		public const string C_ORDER_ID = "ORDER_ID";
		public const string C_CONTRACT_CODE = "CONTRACT_CODE";
		public const string C_CONTRACT_PERSON = "CONTRACT_PERSON";
		public const string C_CONTRACT_DATE = "CONTRACT_DATE";
		public const string C_CONTRACT_PLACE = "CONTRACT_PLACE";
		public const string C_SALES_TYPE = "SALES_TYPE";
		public const string C_CREATED_DATE = "CREATED_DATE";
		public const string C_CREATED_BY = "CREATED_BY";
		public const string C_LAST_MODIFIED_DATE = "LAST_MODIFIED_DATE";
		public const string C_LAST_MODIFIED_BY = "LAST_MODIFIED_BY";
		public const string C_APPROVED_BY = "APPROVED_BY";
		public const string C_APPROVED_DATE = "APPROVED_DATE";
		public const string C_STATUS = "STATUS";
		public const string C_BREACH_AMOUNT = "BREACH_AMOUNT";
		public const string C_REMARK = "REMARK";
		
		public SalesContractTable()
        {
            _tableName = "SALES_CONTRACT";
        }
		
		protected static SalesContractTable _current;
        public static SalesContractTable Current
        {
            get
            {
                if (_current == null)
                {
                    Initial();
                }
                return _current;
            }
        }
		
		private static void Initial()
        {
            _current = new SalesContractTable();

            _current.Add(C_CONTRACT_ID, new ColumnInfo(C_CONTRACT_ID,"ContractId", true, typeof(string)));
            _current.Add(C_ORDER_ID, new ColumnInfo(C_ORDER_ID,"OrderId", false, typeof(string)));
            _current.Add(C_CONTRACT_CODE, new ColumnInfo(C_CONTRACT_CODE,"ContractCode", false, typeof(string)));
            _current.Add(C_CONTRACT_PERSON, new ColumnInfo(C_CONTRACT_PERSON,"ContractPerson", false, typeof(string)));
            _current.Add(C_CONTRACT_DATE, new ColumnInfo(C_CONTRACT_DATE,"ContractDate", false, typeof(DateTime)));
            _current.Add(C_CONTRACT_PLACE, new ColumnInfo(C_CONTRACT_PLACE,"ContractPlace", false, typeof(string)));
            _current.Add(C_SALES_TYPE, new ColumnInfo(C_SALES_TYPE,"SalesType", false, typeof(string)));
            _current.Add(C_CREATED_DATE, new ColumnInfo(C_CREATED_DATE,"CreatedDate", false, typeof(DateTime)));
            _current.Add(C_CREATED_BY, new ColumnInfo(C_CREATED_BY,"CreatedBy", false, typeof(string)));
            _current.Add(C_LAST_MODIFIED_DATE, new ColumnInfo(C_LAST_MODIFIED_DATE,"LastModifiedDate", false, typeof(DateTime)));
            _current.Add(C_LAST_MODIFIED_BY, new ColumnInfo(C_LAST_MODIFIED_BY,"LastModifiedBy", false, typeof(string)));
            _current.Add(C_APPROVED_BY, new ColumnInfo(C_APPROVED_BY,"ApprovedBy", false, typeof(string)));
            _current.Add(C_APPROVED_DATE, new ColumnInfo(C_APPROVED_DATE,"ApprovedDate", false, typeof(DateTime)));
            _current.Add(C_STATUS, new ColumnInfo(C_STATUS,"Status", false, typeof(string)));
            _current.Add(C_BREACH_AMOUNT, new ColumnInfo(C_BREACH_AMOUNT,"BreachAmount", false, typeof(decimal)));
            _current.Add(C_REMARK, new ColumnInfo(C_REMARK,"Remark", false, typeof(string)));
			
		}
		
		public ColumnInfo CONTRACT_ID
        {
            get { return this[C_CONTRACT_ID]; }
        }
		
		public ColumnInfo ORDER_ID
        {
            get { return this[C_ORDER_ID]; }
        }
		
		public ColumnInfo CONTRACT_CODE
        {
            get { return this[C_CONTRACT_CODE]; }
        }
		
		public ColumnInfo CONTRACT_PERSON
        {
            get { return this[C_CONTRACT_PERSON]; }
        }
		
		public ColumnInfo CONTRACT_DATE
        {
            get { return this[C_CONTRACT_DATE]; }
        }
		
		public ColumnInfo CONTRACT_PLACE
        {
            get { return this[C_CONTRACT_PLACE]; }
        }
		
		public ColumnInfo SALES_TYPE
        {
            get { return this[C_SALES_TYPE]; }
        }
		
		public ColumnInfo CREATED_DATE
        {
            get { return this[C_CREATED_DATE]; }
        }
		
		public ColumnInfo CREATED_BY
        {
            get { return this[C_CREATED_BY]; }
        }
		
		public ColumnInfo LAST_MODIFIED_DATE
        {
            get { return this[C_LAST_MODIFIED_DATE]; }
        }
		
		public ColumnInfo LAST_MODIFIED_BY
        {
            get { return this[C_LAST_MODIFIED_BY]; }
        }
		
		public ColumnInfo APPROVED_BY
        {
            get { return this[C_APPROVED_BY]; }
        }
		
		public ColumnInfo APPROVED_DATE
        {
            get { return this[C_APPROVED_DATE]; }
        }
		
		public ColumnInfo STATUS
        {
            get { return this[C_STATUS]; }
        }
		
		public ColumnInfo BREACH_AMOUNT
        {
            get { return this[C_BREACH_AMOUNT]; }
        }
		
		public ColumnInfo REMARK
        {
            get { return this[C_REMARK]; }
        }
		
		
		
	}
}

